from page.base_page import BasePage
from appium.webdriver.common.appium import AppiumBy

from page.search_member_page import SearchMemberPage


class ContactsPage(BasePage):
    def __init__(self, driver):
        super().__init__(driver)

    def to_search(self) -> SearchMemberPage:
        self.find(AppiumBy.ID, 'kv_').click()
        return SearchMemberPage(self.driver)